import Vue from 'vue'
import Vuex from 'vuex'
import common from '@/store/common'
import persistedstate from 'vuex-persistedstate'
Vue.use(Vuex)
export default new Vuex.Store({
  plugins: [
    // 数据持久化
    persistedstate({
      storage: window.sessionStorage
    })
  ],
  modules: {
    common
  }

})
